/* -----------------
* brief
* 1. this is code gen by tools
* 2. array like [a,b,c] after each field, define the ui html tag in view,
		a for title,
		b for show or not ,
		c for element html tag , currently support : check、radio、select、input、textarea、upload
* 3. XXX
*/
//使用方法：在工程root目录下，执行go generate ./modules/eshop/models
//go:generate legogen -type=EShop -kv=ModuleName=eshop,PrjName=saas_sys_base -dirconf=../../.. ./EShop.go
package eshop

import (
	"github.com/mjiulee/lego"
)

func init() {
	lego.AddBeanToSynList(new(EShop))
}

/* table: "tb_e_shop"
 * -----------------
 */
type EShop struct {
	Id    int64  `xorm:"pk" json:",string"` // ["id","hide","hidden"]
	IfDel int    `xorm:"default 0"`         // ["deleted","hide","hidden"]
	Cdate string `xorm:"DateTime created"`  // ["create","show","datetime"]
	Udate string `xorm:"DateTime updated"`  // ["update","show","datetime"]

	TenantId int64 `xorm:"BigInt  "` // ["关联租户","hide","hide"]

	ShopName string `xorm:"varchar(64)  "` // ["店铺名称","show","input"]

	Province string `xorm:"varchar(64)  "` // ["省","show","input"]

	City string `xorm:"varchar(64)  "` // ["市","show","input"]

	Area string `xorm:"varchar(64)  "` // ["区","show","input"]

	Address string `xorm:"varchar(255)  "` // ["地址","show","input"]

	Mobile string `xorm:"varchar(64)  "` // ["电话","show","input"]

	CateId int64 `xorm:"BigInt  "` // ["分类","show","input"]

	License string `xorm:"varchar(255)  "` // ["营业执照","show","input"]

	Lat float64 `xorm:"double  "` // ["纬度","hide","hidden"]

	Lng float64 `xorm:"double  "` // ["经度","hide","hidden"]

	IfCheck int `xorm:"default 0"` // ["deleted","hide","hidden"]

	Balance int64 `xorm:"BigInt"` // ["余额","hide","hidden"]

	Description string `xorm:"Text  "` // ["店铺接受","hide","hidden"]

	Recommend string `xorm:"Text  "` // ["店铺推荐","hide","hidden"]

	WorkType int `xorm:"default 0"` // ["营业时间类型  1：每天，2：每周一到周五","hide","hidden"]

	WorkBeginTime string `xorm:"varchar(255)  "` // ["营业开始时间","hide","hidden"]

	WorkEndTime string `xorm:"varchar(255)  "` // ["营业结束时间","hide","hidden"]

	WeixinNo string `xorm:"varchar(255)  "` // ["加粉微信号","hide","hidden"]

	WeixinQrCode string `xorm:"varchar(255)  "` // ["加粉二维码","hide","hidden"]

	ImagesJson string `xorm:"Text  "` // ["图片集","hide","hidden"]

	Banner string `xorm:"varchar(255)  "` // ["门头照","hide","hidden"]

	Logo string `xorm:"varchar(255)  "` // ["店铺Logo","hide","hidden"]

	RegisterState int `xorm:"-"`

	IsPayed int `xorm:"-"`

	// add your custom field here
}
